Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: /
QuickDraw 3D RAVE / QuickDraw 3D RAVE Reference
QuickDraw 3D RAVE Routines / Manipulating Draw Contexts


QADrawTriMeshGouraud

You can use the QADrawTriMeshGouraud function to draw a triangle mesh with Gouraud shading.

#define QADrawTriMeshGouraud(drawContext,nTriangle,triangles) \
   (drawContext)->drawTriMeshGouraud (drawContext,nTriangle,triangles)
drawContext
A draw context.
nTriangle
The number of indexed triangles pointed to by the triangles parameter.
triangles
A pointer to an array of indexed triangles. See "Indexed Triangle Structure" (page 1-80) for a description of indexed triangles.
DESCRIPTION
The QADrawTriMeshGouraud function draws, with Gouraud shading, the triangle mesh specified by the triangles parameter into the draw context specified by the drawContext parameter. Each triangle in the mesh is defined by a TQAIndexedTriangle data structure, which contains three indices into the array of Gouraud vertices previously submitted to the draw context by a call to the QASubmitVerticesGouraud function.

SPECIAL CONSIDERATIONS
QADrawTriMeshGouraud operates only on a triangle mesh previously submitted using the QASubmitVerticesGouraud function. Use QADrawTriMeshTexture to draw a triangle mesh submitted using the QASubmitVerticesTexture function.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
28 AUG 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help